__author__ = 'wangjc'

import os
import sys

curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(os.path.split(rootPath)[0])

import pytest
import time
from Common.conf_dir import htmlreports_dir

curTime = time.strftime("%Y-%m-%d_%H-%M-%S")
print(htmlreports_dir)
# pytest.main(['-s','./TestCases/',"-q",'--packageEnv='+sys.argv[1],'--end='+sys.argv[2],'--env='+sys.argv[3],'--storyId='+sys.argv[4],
#              "--alluredir", sys.argv[5]])
pytest.main(['-s','./TestCases/',"-q",'--packageEnv=127','--end=B02','--env=test','--storyId=7','--autoType=A01','--ver=all','--assignId=2',
             "--alluredir", htmlreports_dir + "/APP_AutoTest_Reports_{0}.xml".format(curTime)])
